﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ShareCodeClassList.ascx.cs"
    Inherits="BuXiaChu.OrderDishes.Web.Admin.Modules.ShareCode.ShareCodeClassList" %>
<table>
    <tr>
        <td>
            类别编码
        </td>
        <td>
            类别名称
        </td>
        <td>
            操作
        </td>
    </tr>
    <% foreach (var item in List)
       {%>
    <tr>
        <td>
            <%= item.ClassID %>
        </td>
        <td>
            <span>
                <%= HttpUtility.HtmlEncode(item.Name)%></span>
            <input type="text" style="display: none;" id="txt_update_<%=item.ClassID %>" size="30"
                maxlength="100" value="<%= item.Name %>" />
        </td>
        <td data-id="<%=item.ClassID %>">
            <a href="javascript:;" onclick="shareCodeManager.modifyClass(this)" id="aModify<%=item.ClassID %>"
                opt="0">修改</a> <a href="javascript:;" onclick="shareCodeManager.delClass(this)" id="aDelete<%=item.ClassID %>">
                    删除</a> <a href="javascript:;" onclick="shareCodeManager.cancleClass(this)" id="aCancle<%=item.ClassID %>"
                        style="display: none">取消</a>
        </td>
        <td>
            <a href="ShareCode.aspx?classId=<%=item.ClassID %>">增加子类</a>
        </td>
    </tr>
    <%} %>
</table>
